Commit e1885408 authored by Reynaldi Addriantama's avatar Reynaldi Addriantama

port test

parent 5ae9b1ae
......@@ -56,7 +56,9 @@ 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;');
......@@ -90,7 +92,8 @@ class AdminController extends \Application\Master\GlobalActionController
// $uri = $this->getRequest()->getUri();
// $baseurl = sprintf('//%s', $uri->getHost());
// $port = $uri->getPort();
// $baseurl = $baseurl.":".$port;
// $actionName = $this->params('action');
// $this->headScript->appendScript(' var nopeg;');
......@@ -122,7 +125,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
// $getpath = explode("/",$uri->getPath());
// $decodeid = base64_decode($getpath[3]);
......@@ -158,7 +162,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -188,7 +193,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -216,7 +222,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -243,7 +250,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = base64_decode(urldecode($_GET['nim']));
$role = $userSession->get('role');
......@@ -274,7 +282,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = base64_decode(urldecode($_GET['nim']));
$role = $userSession->get('role');
......@@ -308,7 +317,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = base64_decode(urldecode($_GET['nim']));
// echo $$_GET['nim'];die;
......@@ -340,7 +350,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = base64_decode(urldecode($_GET['nim']));
// echo $urlvar;die;
......@@ -382,7 +393,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$urlvar = base64_decode(urldecode($_GET['nim']));
// echo $$_GET['nim'];die;
......@@ -416,7 +428,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
......@@ -444,7 +457,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
......@@ -475,7 +489,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
......@@ -508,7 +523,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -542,7 +558,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -577,7 +594,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -612,7 +630,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$role = $userSession->get('role');
$visibleAction = false;
......@@ -653,7 +672,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......@@ -686,7 +706,8 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$port = $uri->getPort();
$baseurl = $baseurl.":".$port;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
......
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