Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sipenkp_v2
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reynaldi adriantama
sipenkp_v2
Commits
e1885408
Commit
e1885408
authored
Jun 26, 2024
by
Reynaldi Addriantama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port test
parent
5ae9b1ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
20 deletions
+41
-20
module/Application/src/Controller/AdminController.php
module/Application/src/Controller/AdminController.php
+41
-20
No files found.
module/Application/src/Controller/AdminController.php
View file @
e1885408
...
...
@@ -56,7 +56,9 @@ class AdminController extends \Application\Master\GlobalActionController
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// print_r($baseurl);die;
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var nopeg;'
);
...
...
@@ -90,7 +92,8 @@ class AdminController extends \Application\Master\GlobalActionController
// $uri = $this->getRequest()->getUri();
// $baseurl = sprintf('//%s', $uri->getHost());
// $port = $uri->getPort();
// $baseurl = $baseurl.":".$port;
// $actionName = $this->params('action');
// $this->headScript->appendScript(' var nopeg;');
...
...
@@ -122,7 +125,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// $getpath = explode("/",$uri->getPath());
// $decodeid = base64_decode($getpath[3]);
...
...
@@ -158,7 +162,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -188,7 +193,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -216,7 +222,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -243,7 +250,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$role
=
$userSession
->
get
(
'role'
);
...
...
@@ -274,7 +282,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$role
=
$userSession
->
get
(
'role'
);
...
...
@@ -308,7 +317,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
...
...
@@ -340,7 +350,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $urlvar;die;
...
...
@@ -382,7 +393,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
...
...
@@ -416,7 +428,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
...
...
@@ -444,7 +457,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
...
@@ -475,7 +489,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
...
...
@@ -508,7 +523,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -542,7 +558,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -577,7 +594,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -612,7 +630,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$role
=
$userSession
->
get
(
'role'
);
$visibleAction
=
false
;
...
...
@@ -653,7 +672,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -686,7 +706,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment