SHARE
TWEET

Untitled

a guest May 23rd, 2019 13 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function start($controllerKey = null, $function = null, $parameters = null, $viewsChain = null)
  2. {
  3.     parent::start($controllerKey, $function, $parameters, $viewsChain);
  4.  
  5.     $FeedbackTrace = Registry::getSession()->getVariable("swwFeedbackTrace");
  6.  
  7.     if(empty($FeedbackTrace)) {
  8.         $FeedbackTrace = [];
  9.     }
  10.  
  11.     if(count($FeedbackTrace) === 10) {
  12.         array_shift($FeedbackTrace);
  13.     }
  14.  
  15.     $FeedbackTrace[time()] = [
  16.         'HTTP_HOST' => $_SERVER['HTTP_HOST'],
  17.         'REQUEST_URI' => $_SERVER['REQUEST_URI'],
  18.         'QUERY_STRING' => $_SERVER['QUERY_STRING']
  19.     ];
  20.     Registry::getSession()->setVariable("swwFeedbackTrace", $FeedbackTrace);
  21.  
  22.     echo "<pre>" . print_r(Registry::getSession()->getVariable("swwFeedbackTrace"), true) . "</pre>";
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top