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
be45ee8d
Commit
be45ee8d
authored
Jun 26, 2024
by
Reynaldi Addriantama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add port to controller
parent
a780378d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
0 deletions
+94
-0
module/Application/src/Controller/DosenController.php
module/Application/src/Controller/DosenController.php
+18
-0
module/Application/src/Controller/IndexController.php
module/Application/src/Controller/IndexController.php
+4
-0
module/Application/src/Controller/JadwalController.php
module/Application/src/Controller/JadwalController.php
+6
-0
module/Application/src/Controller/KaprodiController.php
module/Application/src/Controller/KaprodiController.php
+32
-0
module/Application/src/Controller/KoordinatorController.php
module/Application/src/Controller/KoordinatorController.php
+10
-0
module/Application/src/Controller/MahasiswaController.php
module/Application/src/Controller/MahasiswaController.php
+12
-0
module/Application/src/Controller/PenilaianController.php
module/Application/src/Controller/PenilaianController.php
+12
-0
No files found.
module/Application/src/Controller/DosenController.php
View file @
be45ee8d
...
@@ -42,6 +42,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -42,6 +42,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'nopeg'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'nopeg'
)
.
'"'
);
...
@@ -74,6 +76,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -74,6 +76,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -105,6 +109,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -105,6 +109,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim = "'
.
$userSession
->
get
(
'usernamed'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim = "'
.
$userSession
->
get
(
'usernamed'
)
.
'"'
);
...
@@ -137,6 +143,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -137,6 +143,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -169,6 +177,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -169,6 +177,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -201,6 +211,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -201,6 +211,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -234,6 +246,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -234,6 +246,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -276,6 +290,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -276,6 +290,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -315,6 +331,8 @@ class DosenController extends \Application\Master\GlobalActionController
...
@@ -315,6 +331,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
...
module/Application/src/Controller/IndexController.php
View file @
be45ee8d
...
@@ -38,6 +38,8 @@ class IndexController extends \Application\Master\GlobalActionController
...
@@ -38,6 +38,8 @@ class IndexController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -64,6 +66,8 @@ class IndexController extends \Application\Master\GlobalActionController
...
@@ -64,6 +66,8 @@ class IndexController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
$_GET
[
'nopeg'
];
$urlvar
=
$_GET
[
'nopeg'
];
$view
->
setVariable
(
'qrcode'
,
$urlvar
);
$view
->
setVariable
(
'qrcode'
,
$urlvar
);
...
...
module/Application/src/Controller/JadwalController.php
View file @
be45ee8d
...
@@ -41,6 +41,8 @@ class JadwalController extends \Application\Master\GlobalActionController
...
@@ -41,6 +41,8 @@ class JadwalController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -66,6 +68,8 @@ class JadwalController extends \Application\Master\GlobalActionController
...
@@ -66,6 +68,8 @@ class JadwalController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// $getpath = explode("/",$uri->getPath());
// $getpath = explode("/",$uri->getPath());
// $decodeid = base64_decode($getpath[3]);
// $decodeid = base64_decode($getpath[3]);
...
@@ -118,6 +122,8 @@ class JadwalController extends \Application\Master\GlobalActionController
...
@@ -118,6 +122,8 @@ class JadwalController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// $getpath = explode("/",$uri->getPath());
// $getpath = explode("/",$uri->getPath());
// $decodeid = base64_decode($getpath[3]);
// $decodeid = base64_decode($getpath[3]);
...
...
module/Application/src/Controller/KaprodiController.php
View file @
be45ee8d
...
@@ -46,6 +46,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -46,6 +46,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var nopeg;'
);
$this
->
headScript
->
appendScript
(
' var nopeg;'
);
...
@@ -77,6 +79,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -77,6 +79,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// $getpath = explode("/",$uri->getPath());
// $getpath = explode("/",$uri->getPath());
// $decodeid = base64_decode($getpath[3]);
// $decodeid = base64_decode($getpath[3]);
...
@@ -113,6 +117,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -113,6 +117,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -141,6 +147,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -141,6 +147,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -169,6 +177,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -169,6 +177,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -197,6 +207,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -197,6 +207,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -229,6 +241,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -229,6 +241,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -261,6 +275,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -261,6 +275,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -293,6 +309,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -293,6 +309,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -326,6 +344,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -326,6 +344,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -359,6 +379,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -359,6 +379,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -387,6 +409,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -387,6 +409,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -416,6 +440,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -416,6 +440,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -448,6 +474,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -448,6 +474,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// print_r($userSession->get('kodeprodi'));die;
// print_r($userSession->get('kodeprodi'));die;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var kodeprodi = "'
.
$userSession
->
get
(
'kaprodi'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var kodeprodi = "'
.
$userSession
->
get
(
'kaprodi'
)
.
'"'
);
...
@@ -481,6 +509,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -481,6 +509,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// $getpath = explode("/",$uri->getPath());
// $getpath = explode("/",$uri->getPath());
// $decodeid = base64_decode($getpath[3]);
// $decodeid = base64_decode($getpath[3]);
...
@@ -527,6 +557,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
...
@@ -527,6 +557,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
...
module/Application/src/Controller/KoordinatorController.php
View file @
be45ee8d
...
@@ -38,6 +38,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
...
@@ -38,6 +38,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'usernamed'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'usernamed'
)
.
'"'
);
...
@@ -68,6 +70,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
...
@@ -68,6 +70,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $urlvar;die;
// echo $urlvar;die;
...
@@ -103,6 +107,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
...
@@ -103,6 +107,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
// echo $$_GET['nim'];die;
// echo $$_GET['nim'];die;
...
@@ -138,6 +144,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
...
@@ -138,6 +144,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -202,6 +210,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
...
@@ -202,6 +210,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = "'
.
$userSession
->
get
(
"user_id"
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = "'
.
$userSession
->
get
(
"user_id"
)
.
'"'
);
...
...
module/Application/src/Controller/MahasiswaController.php
View file @
be45ee8d
...
@@ -43,6 +43,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
...
@@ -43,6 +43,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var nopeg;'
);
$this
->
headScript
->
appendScript
(
' var nopeg;'
);
...
@@ -75,6 +77,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
...
@@ -75,6 +77,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -107,6 +111,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
...
@@ -107,6 +111,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim = "'
.
$userSession
->
get
(
'nim'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim = "'
.
$userSession
->
get
(
'nim'
)
.
'"'
);
...
@@ -141,6 +147,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
...
@@ -141,6 +147,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -174,6 +182,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
...
@@ -174,6 +182,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
@@ -206,6 +216,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
...
@@ -206,6 +216,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
...
...
module/Application/src/Controller/PenilaianController.php
View file @
be45ee8d
...
@@ -40,6 +40,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
...
@@ -40,6 +40,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
// print_r($baseurl);die;
// print_r($baseurl);die;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
...
@@ -76,6 +78,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
...
@@ -76,6 +78,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -115,6 +119,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
...
@@ -115,6 +119,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -154,6 +160,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
...
@@ -154,6 +160,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -197,6 +205,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
...
@@ -197,6 +205,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$actionName
=
$this
->
params
(
'action'
);
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
@@ -236,6 +246,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
...
@@ -236,6 +246,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
/* get url */
$uri
=
$this
->
getRequest
()
->
getUri
();
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$port
=
$uri
->
getPort
();
$baseurl
=
$baseurl
.
":"
.
$port
;
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlvar
=
base64_decode
(
urldecode
(
$_GET
[
'nim'
]));
$urlid
=
base64_decode
(
urldecode
(
$_GET
[
'param'
]));
$urlid
=
base64_decode
(
urldecode
(
$_GET
[
'param'
]));
// print_r($urlid);die;
// print_r($urlid);die;
...
...
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