/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(2972)
2960 2961 //---------------------------------------------------------------------- 2962 public function getCode() 2963 { 2964 $ret; 2965 2966 if($this->count < $this->dataLength) { 2967 $row = $this->count % $this->blocks; 2968 $col = $this->count / $this->blocks; 2969 if($col >= $this->rsblocks[0]->dataLength) { 2970 $row += $this->b1; 2971 } 2972 $ret = $this->rsblocks[$row]->data[$col]; 2973 } else if($this->count < $this->dataLength + $this->eccLength) { 2974 $row = ($this->count - $this->dataLength) % $this->blocks; 2975 $col = ($this->count - $this->dataLength) / $this->blocks; 2976 $ret = $this->rsblocks[$row]->ecc[$col]; 2977 } else { 2978 return 0; 2979 } 2980 $this->count++; 2981 2982 return $ret; 2983 } 2984 }
#0 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3019): QRrawcode->getCode() 3014 return NULL; 3015 } 3016 3017 // inteleaved data and ecc codes 3018 for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) { 3019 $code = $raw->getCode(); 3020 $bit = 0x80; 3021 for($j=0; $j<8; $j++) { 3022 $addr = $filler->next(); 3023 $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0)); 3024 $bit = $bit >> 1; |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3072): QRcode->encodeMask(QRinput, -1) 3067 } 3068 3069 //---------------------------------------------------------------------- 3070 public function encodeInput(QRinput $input) 3071 { 3072 return $this->encodeMask($input, -1); 3073 } 3074 3075 //---------------------------------------------------------------------- 3076 public function encodeString8bit($string, $version, $level) 3077 { |
#2 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3111): QRcode->encodeInput(QRinput) 3106 $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive); 3107 if($ret < 0) { 3108 return NULL; 3109 } 3110 3111 return $this->encodeInput($input); 3112 } 3113 3114 //---------------------------------------------------------------------- 3115 public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false, $back_color = 0xFFFFFF, $fore_color = 0x000000) 3116 { |
#3 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3318): QRcode->encodeString("otpauth://totp/LimeSurvey%20-%20User%20ID%3A%201?secret=RWLV3FOJ...", 0, 0, 2, ...) 3313 $code = new QRcode(); 3314 3315 if($this->eightbit) { 3316 $code->encodeString8bit($intext, $this->version, $this->level); 3317 } else { 3318 $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive); 3319 } 3320 3321 QRtools::markTime('after_encode'); 3322 3323 if ($outfile!== false) { |
#4 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3336): QRencode->encode("otpauth://totp/LimeSurvey%20-%20User%20ID%3A%201?secret=RWLV3FOJ...") 3331 public function encodePNG($intext, $outfile = false,$saveandprint=false) 3332 { 3333 try { 3334 3335 ob_start(); 3336 $tab = $this->encode($intext); 3337 $err = ob_get_contents(); 3338 ob_end_clean(); 3339 3340 if ($err != '') 3341 QRtools::log($outfile, $err); |
#5 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3118): QRencode->encodePNG("otpauth://totp/LimeSurvey%20-%20User%20ID%3A%201?secret=RWLV3FOJ...", null, false) 3113 3114 //---------------------------------------------------------------------- 3115 public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false, $back_color = 0xFFFFFF, $fore_color = 0x000000) 3116 { 3117 $enc = QRencode::factory($level, $size, $margin, $back_color, $fore_color); 3118 return $enc->encodePNG($text, $outfile, $saveandprint=false); 3119 } 3120 3121 //---------------------------------------------------------------------- 3122 public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) 3123 { |
#6 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/TFAQrCodeGenerator.php(11):
QRcode::png("otpauth://totp/LimeSurvey%20-%20User%20ID%3A%201?secret=RWLV3FOJ...", null, 0, 3, ...) 06 return 'image/png'; // This provider only returns PNG's 07 } 08 09 public function getQRCodeImage($qrtext, $size) { 10 ob_start(); // 'Catch' QRCode's output 11 QRCode::png($qrtext, null, QR_ECLEVEL_L, 3, 4); // We ignore $size and set it to 3 12 // since phpqrcode doesn't support 13 // a size in pixels... 14 $result = ob_get_contents(); // 'Catch' QRCode's output 15 ob_end_clean(); // Cleanup 16 return $result; // Return image |
#7 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/vendor/robthree/twofactorauth/lib/TwoFactorAuth.php(131):
TFAQrCodeGenerator->getQRCodeImage("otpauth://totp/LimeSurvey%20-%20User%20ID%3A%201?secret=RWLV3FOJ...", 200) 126 127 $qrcodeprovider = $this->getQrCodeProvider(); 128 return 'data:' 129 . $qrcodeprovider->getMimeType() 130 . ';base64,' 131 . base64_encode((string) $qrcodeprovider->getQRCodeImage($this->getQRText($label, $secret), $size)); 132 } 133 134 /** 135 * Compare default timeprovider with specified timeproviders and ensure the time is within the specified number of seconds (leniency) 136 */ |
#8 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/TwoFactorAdminLogin.php(338): RobThree\Auth\TwoFactorAuth->getQRCodeImageAsDataUri("LimeSurvey - User ID: 1", "RWLV3FOJACUBLJGG") 333 334 $o2FA = $this->get2FAObject(); 335 336 $oTFAModel->uid = $iUserId; 337 $oTFAModel->secretKey = $o2FA->createSecret(); 338 $sQRCodeContent = '<img src="' . $o2FA->getQRCodeImageAsDataUri('LimeSurvey - User ID: ' . Yii::app()->user->id, $oTFAModel->secretKey) . '">'; 339 340 return $this->renderPartial('_partial/create', [ 341 'model' => $oTFAModel, 342 'sQRCodeContent' => $sQRCodeContent, 343 ]); |
#9 |
+
–
/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/TwoFactorAdminLogin.php(113): TwoFactorAdminLogin->directCallCreateNewKey(PluginEvent, LSHttpRequest) 108 return; 109 } 110 111 $action = $oEvent->get('function'); 112 if (method_exists($this, $action)) { 113 call_user_func([$this, $action], $oEvent, $request); 114 } 115 } 116 117 /** 118 * Event direct happen |
#10 |
unknown(0): TwoFactorAdminLogin->newDirectRequest()
|
#11 |
+
–
/media/shnoulle/data/webdev/master/application/libraries/PluginManager/PluginManager.php(269): call_user_func(array(TwoFactorAdminLogin, "newDirectRequest")) 264 if ( 265 !$event->isStopped() 266 && (empty($target) || in_array(get_class($subscription[0]), $target)) 267 ) { 268 $subscription[0]->setEvent($event); 269 call_user_func($subscription); 270 } 271 } 272 } 273 274 return $event; |
#12 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/PluginsController.php(23): LimeSurvey\PluginManager\PluginManager->dispatchEvent(PluginEvent) 18 $oEvent->set('target', $plugin); 19 // The name of the function. 20 $oEvent->set('function', $function); 21 $oEvent->set('request', App()->request); 22 23 App()->getPluginManager()->dispatchEvent($oEvent); 24 $sOutput = ''; 25 foreach ($oEvent->getAllContent() as $content) { 26 $sOutput .= $content->getContent(); 27 } 28 if (!empty($sOutput)) { |
#13 |
unknown(0): PluginsController->actionDirect("TwoFactorAdminLogin", "directCallCreateNewKey")
|
#14 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(PluginsController, array("TwoFactorAdminLogin", "directCallCreateNewKey")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#15 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(PluginsController,
ReflectionMethod, array("r" =>
"plugins/direct/plugin/TwoFactorAdminLogin/function/directCallCre...",
"plugin" => "TwoFactorAdminLogin", "function" =>
"directCallCreateNewKey")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#16 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r"
=>
"plugins/direct/plugin/TwoFactorAdminLogin/function/directCallCre...",
"plugin" => "TwoFactorAdminLogin", "function" =>
"directCallCreateNewKey")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#17 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#18 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#19 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("direct") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("plugins/direct/plugin/TwoFactorAdminLogin/function/directCallCre...") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#21 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#22 |
+
–
/media/shnoulle/data/webdev/master/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |