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
02ddb5ba
Commit
02ddb5ba
authored
Jun 26, 2024
by
Reynaldi Addriantama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admincontroller
parent
2b466471
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
20 deletions
+40
-20
module/Application/src/Controller/AdminController.php
module/Application/src/Controller/AdminController.php
+40
-20
No files found.
module/Application/src/Controller/AdminController.php
View file @
02ddb5ba
...
...
@@ -56,7 +56,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;'
);
...
...
@@ -90,7 +91,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 +124,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 +161,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 +192,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 +221,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 +249,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 +281,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 +316,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 +349,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 +392,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 +427,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 +456,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 +488,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 +522,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 +557,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 +593,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 +629,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 +671,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 +705,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