Commit 02ddb5ba authored by Reynaldi Addriantama's avatar Reynaldi Addriantama

admincontroller

parent 2b466471
......@@ -56,7 +56,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;');
......@@ -90,7 +91,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 +124,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 +161,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 +192,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 +221,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 +249,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 +281,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 +316,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 +349,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 +392,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 +427,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 +456,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 +488,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 +522,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 +557,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 +593,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 +629,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 +671,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 +705,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