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
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var nopeg = "' . $userSession->get('nopeg') . '"');
......@@ -74,6 +76,8 @@ class DosenController 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');
......@@ -105,6 +109,8 @@ class DosenController 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 nim = "' . $userSession->get('usernamed') . '"');
......@@ -137,6 +143,8 @@ class DosenController 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');
......@@ -169,6 +177,8 @@ class DosenController 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');
......@@ -201,6 +211,8 @@ class DosenController 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;
......@@ -234,6 +246,8 @@ class DosenController 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;
......@@ -276,6 +290,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -315,6 +331,8 @@ class DosenController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......
......@@ -38,6 +38,8 @@ class IndexController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -64,6 +66,8 @@ class IndexController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = $_GET['nopeg'];
$view->setVariable('qrcode', $urlvar);
......
......@@ -41,6 +41,8 @@ class JadwalController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -66,6 +68,8 @@ class JadwalController 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]);
......@@ -118,6 +122,8 @@ class JadwalController 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]);
......
......@@ -46,6 +46,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var nopeg;');
......@@ -77,6 +79,8 @@ class KaprodiController 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]);
......@@ -113,6 +117,8 @@ class KaprodiController 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');
......@@ -141,6 +147,8 @@ class KaprodiController 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');
......@@ -169,6 +177,8 @@ class KaprodiController 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');
......@@ -197,6 +207,8 @@ class KaprodiController 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;
......@@ -229,6 +241,8 @@ class KaprodiController 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;
......@@ -261,6 +275,8 @@ class KaprodiController 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;
......@@ -293,6 +309,8 @@ class KaprodiController 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;
......@@ -326,6 +344,8 @@ class KaprodiController 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;
......@@ -359,6 +379,8 @@ class KaprodiController 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');
......@@ -387,6 +409,8 @@ class KaprodiController 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 . '"');
......@@ -416,6 +440,8 @@ class KaprodiController 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');
......@@ -448,6 +474,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
// print_r($userSession->get('kodeprodi'));die;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var kodeprodi = "' . $userSession->get('kaprodi') . '"');
......@@ -481,6 +509,8 @@ class KaprodiController 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]);
......@@ -527,6 +557,8 @@ class KaprodiController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......
......@@ -38,6 +38,8 @@ class KoordinatorController 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 = "' . $userSession->get('usernamed') . '"');
......@@ -68,6 +70,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = base64_decode(urldecode($_GET['nim']));
// echo $urlvar;die;
......@@ -103,6 +107,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$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;
......@@ -138,6 +144,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$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');
......@@ -202,6 +210,8 @@ class KoordinatorController extends \Application\Master\GlobalActionController
$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 = "'.$userSession->get("user_id").'"');
......
......@@ -43,6 +43,8 @@ class MahasiswaController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var nopeg;');
......@@ -75,6 +77,8 @@ class MahasiswaController 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');
......@@ -107,6 +111,8 @@ class MahasiswaController 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 nim = "' . $userSession->get('nim') . '"');
......@@ -141,6 +147,8 @@ class MahasiswaController 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');
......@@ -174,6 +182,8 @@ class MahasiswaController 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');
......@@ -206,6 +216,8 @@ class MahasiswaController 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');
......
......@@ -40,6 +40,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
// print_r($baseurl);die;
$actionName = $this->params('action');
......@@ -76,6 +78,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -115,6 +119,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -154,6 +160,8 @@ class PenilaianController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -197,6 +205,8 @@ class PenilaianController 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']));
$actionName = $this->params('action');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -236,6 +246,8 @@ class PenilaianController 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']));
$urlid = base64_decode(urldecode($_GET['param']));
// 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