Commit be45ee8d authored by Reynaldi Addriantama's avatar Reynaldi Addriantama

add port to controller

parent a780378d
...@@ -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 . '"');
......
...@@ -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);
......
...@@ -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]);
......
...@@ -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 . '"');
......
...@@ -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").'"');
......
...@@ -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');
......
...@@ -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;
......
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