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
a780378d
Commit
a780378d
authored
Jun 26, 2024
by
Reynaldi Addriantama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base global
parent
02ddb5ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
module/Application/src/Controller/AdminController.php
module/Application/src/Controller/AdminController.php
+24
-4
module/Application/src/Master/GlobalActionController.php
module/Application/src/Master/GlobalActionController.php
+2
-1
No files found.
module/Application/src/Controller/AdminController.php
View file @
a780378d
...
...
@@ -56,9 +56,10 @@ 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;'
);
$this
->
headScript
->
appendScript
(
' var nim;'
);
...
...
@@ -91,8 +92,9 @@ class AdminController extends \Application\Master\GlobalActionController
// $uri = $this->getRequest()->getUri();
// $port = $uri->getPort();
// $baseurl = $baseurl.":".$port;
// $baseurl = sprintf('//%s', $uri->getHost());
// $port = $uri->getPort();
// $baseurl = $baseurl.":".$port;
// $actionName = $this->params('action');
// $this->headScript->appendScript(' var nopeg;');
...
...
@@ -124,6 +126,7 @@ 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());
...
...
@@ -161,6 +164,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -192,8 +196,9 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
@@ -221,6 +226,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -249,6 +255,7 @@ 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'
]));
...
...
@@ -281,6 +288,7 @@ 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'
]));
...
...
@@ -316,6 +324,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -349,6 +358,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -392,6 +402,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -427,6 +438,7 @@ 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
.
'"'
);
...
...
@@ -456,6 +468,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -488,6 +501,7 @@ 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
.
'"'
);
...
...
@@ -522,6 +536,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -557,6 +572,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -593,6 +609,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -629,6 +646,7 @@ 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'
);
...
...
@@ -671,6 +689,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
@@ -705,6 +724,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
...
...
module/Application/src/Master/GlobalActionController.php
View file @
a780378d
...
...
@@ -392,6 +392,7 @@ class GlobalActionController extends \Khansia\Mvc\Controller {
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
if
((
$controllerName
!=
'Application\Controller\ApiController'
&&
$controllerName
!=
'Application\Controller\JsondataController'
)){
...
...
@@ -400,7 +401,7 @@ class GlobalActionController extends \Khansia\Mvc\Controller {
$userSess
=
$this
->
getSession
();
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
$this
->
headScript
->
appendScript
(
' var role = "'
.
$userSess
->
get
(
'role'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseglobal = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseglobal = "'
.
$baseurl
.
'
:'
.
$port
.
'
"'
);
$this
->
headScript
->
appendScript
(
' var actionControl = "'
.
$actionName
.
'"'
);
$this
->
headScript
->
appendFile
(
'/action-js/global-js/sha256.js'
);
$this
->
headScript
->
appendFile
(
'/action-js/global-js/javaScriptGlobalCustom.js'
);
...
...
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